草庐IT

java - Camel Websocket 组件无法安装到 Karaf

全部标签

ruby - 安装 RVM : getting error "There was an error(23)."

我尝试安装RubyVersionManager(RVM)但没有成功。如何解决我遇到的这个错误?ubuntu@ip-172-31-0-20:/tmp$rvminstallruby-1.9.3-p484Searchingforbinaryrubies,thismighttakesometime.Nobinaryrubiesavailablefor:ubuntu/14.04/x86_64/ruby-1.9.3-p484.Continuingwithcompilation.Pleaseread'rvmhelpmount'togetmoreinformationonbinaryrubies.Ch

ruby - 安装 RVM : "Requirements installation failed with status: 1."

这是我在命令提示符之前看到的最后一件事:Searchingforbinaryrubies,thismighttakesometime.Foundremotefilehttps://rvm.io/binaries/osx/10.9/x86_64/ruby-2.1.1.tar.bz2Checkingrequirementsforosx.AbouttoinstallHomebrew,press`Enter`fordefaultinstallationin`/usr/local`,typenewpathifyouwishcustomHomebrewinstallation(thepathnee

ruby-on-rails - 升级到 ruby​​ 1.9.2 后奇怪的无法要求配置/启动

我将我的ruby​​升级到1.9.2,现在当我尝试使用脚本/服务器启动Rails2.3.5应用程序时,出现此错误::29:in`require':nosuchfiletoload--script/../config/boot(LoadError)from:29:in`require'fromscript/server:2:in`'但是script/server:2看起来确实是正确的,并且文件config/boot.rb存在于正确的位置。 最佳答案 更简单,不需要修改所有脚本:代替:script/server调用:./script/s

ruby-on-rails - Elastic Beanstalk Ruby/Rails 需要安装 git 所以 bundle install 可以工作..但不是

我在部署我们的Rails应用程序时遇到问题。我创建了一个类似于AWS博客howto上示例的Hookhttp://ruby.awsblog.com/post/Tx2AK2MFX0QHRIO/Deploying-Ruby-Applications-to-AWS-Elastic-Beanstalk-with-Git喜欢:packages:yum:git:[]甚至我运行一个bundle来创建vendor/cache以将所有gems都放在那里......并且仍然得到:git://github.com/refinery/refinerycms-search.git(在2-0-stable)未che

ruby - 无法在 Ubuntu 中安装 vagrant 插件

我试图安装vagrant插件vbguest,但在终端中出现以下错误:$vagrantplugininstallvbguestInstallingthe'vbguest'plugin.Thiscantakeafewminutes.../usr/lib/ruby/2.3.0/rubygems/specification.rb:946:in`all=':undefinedmethod`group_by'fornil:NilClass(NoMethodError)from/usr/lib/ruby/vendor_ruby/vagrant/bundler.rb:275:in`with_isola

ruby - Bundler 无法与 rbenv 一起工作,找不到 [gem]

我刚刚从rvm切换到rbenv,我正在尝试使用bundler进行gem管理。在运行bundleinstall并尝试运行一个简单的sinatra应用程序(rubyapp.rb)之后,我得到了这个:Couldnotfindhaml-3.1.4inanyofthesourcesRun`bundleinstall`toinstallmissinggems.再次运行bundleinstall没有效果。还按照另一个问题回复的建议尝试了bundleupdate。这是我的Gemfile:source"http://rubygems.org"gem"sinatra"gem"haml"这就是bundles

ruby - 在现有的 Jekyll 安装中切换主题

Jekyll有很多主题,例如https://github.com/jekyll/jekyll/wiki/Themes.在现有的Jekyll安装中切换到新主题的最简单方法是什么? 最佳答案 这是我为更改现有Jekyll安装的主题所做的。调整这些说明以满足您的需要。拉新主题我们创建一个新的孤立分支newtheme并确保它是空的。gitcheckout--orphannewthemegitrm-rf.gitclean-dfx然后我们通过将主题添加为上游远程来将主题文件拉入其中。在此示例中,我拉取了JohnOtander的Pixyll主题的

ruby-on-rails - ruby 2.0 rails gem 安装错误 "cannot load such file -- openssl"

我正在使用osx10.8.2安装了ruby2.0并且....尝试运行"sudogeminstallrails"时得到这个$sudogeminstallrailsERROR:Loadingcommand:install(LoadError)cannotloadsuchfile--opensslERROR:Whileexecutinggem...(NoMethodError)undefinedmethod`invoke_with_build_args'fornil:NilClass我之前使用ruby​​1.9.x和rails3.2.x工作正常 最佳答案

ruby-on-rails - Gem.source_index 已弃用,请使用 Specification。我应该重新安装 Gem 还是 Rails?

我正在Ubuntu11上学习RoR。当我尝试生成应用程序时收到以下消息。我是不是安装错了什么?$railsgeneratecontrollerPageshomecontactNOTE:Gem.source_indexisdeprecated,useSpecification.Itwillberemovedonorafter2011-11-01.Gem.source_indexcalledfrom/usr/lib/ruby/gems/1.8/gems/bundler-1.0.12/lib/bundler/shared_helpers.rb:3.NOTE:Gem.source_indexi

ruby-on-rails - Gem::LoadError: 无法激活 pg (~> 0.18),已激活 pg-1.0.0

这个问题在这里已经有了答案:RailsapplicationusingPostgresadaptercan'tactivatepg(1个回答)关闭4年前。我一直在做Rails教程发现here并且已经成功到必须使用$railsdb:migrate来迁移Comments迁移。在此之前,我已经能够毫无问题地生成文章模型并迁移文章创建迁移。在这两次迁移之间,我的Gemfile中没有任何变化,所以我不确定Bundler有什么问题。这是错误,后面是完整的命令行输出,以及我的Gemfile和schema.rb:Gem::LoadError:can'tactivatepg(~>0.18),alread